Automation Anywhere GetCasesByProcess
Overview
This operation returns a JSON containing all the information of the cases of a specific process that the authenticated user can access.
Input
- token: Token used to authenticate the user.
- process-id: GUID of the process. It must be the GUID; this operation will not work with the ID.
- base-address: URL of your Work Portal.
Output
-
cases: A JSON containing the cases information.
Important considerations
- Generally, before using this operation, you must get the authorization token using the Authenticate operation.
- The ID of the process needed for this method is the GUID, not the process ID. This can be obtained from the GetProcess operation.
- Several important properties can be retrieved from this operation:
- The case ID is identified by the key "id".
- The attributes related to the process are identified in the "parameters" array, showing their xpath and value.
Here you can see an example of how the JSON looks like:
[{
"@odata.id": "http://wp-danielpd/AutomationAnywhereV2/odata/data/processes(1ad0908c-c0a8-463a-b6d4-0181d652147c)/cases(1)",
"@processEntityKey": "140b84be-a451-4e66-87b9-36992bf3aee4",
"id": 1,
"caseNumber": "1",
"creationDate": "2019-05-29T10:21:48-05:00",
"estimatedSolutionDate": "2019-05-29T10:21:48-05:00",
"solutionDate": "",
"processName": "CV Reader",
"closed": false,
"parameters": [
{
"xpath": "Profession",
"value": "Molding, coremaking, and casting machine operator"
},
{
"xpath": "CaseID",
"value": "1"
},
{
"xpath": "Yearsofexperience",
"value": "15"
},
{
"xpath": "Fullname",
"value": "Douglas M. Williams"
}
]
}]